const e = require("./Test");

module.exports = function (res, id) {
  var code = res.code;
  if (code !== 200) {
    e.Msg(res.message);
    return;
  }
  var financeVoucherId = res.data;
  var financeAccountNo = res.data2;
  // #/blank/finance__voucher__main?pid=68
  // 跳转到凭证
  if (financeVoucherId !== undefined) {
    window.open(
      "/#/blank/finance__voucher__view?pid=" +
      financeVoucherId +
      "&financeAccountNo=" +
      financeAccountNo
    );
  }
};
